
class OuthouseModel{
	constructor(){
		this.table = "tb_outdata";
	}
	
	findAllOrderByDate(conn,sql){
		let pro = new Promise((resolve, reject) => {
			conn.query(sql).then(function(data) {
				resolve(data);
			});
		});
		return pro;
	}

	addNewOutTable(conn,data){
		return conn.table(this.table).addAll(data);
	}
}

module.exports = OuthouseModel;